package mystia.lorelei.app.repository;

import mystia.lorelei.app.entity.Purchase;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface PurchaseRepository extends JpaRepository<Purchase,Integer> {
	@Query(value = "delete from purchase p where p.id in ?1",nativeQuery = true)
	public void deleteAllByIds(List<Integer> ids);
}
